<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class CompanyWorkCreateRequest extends BasicRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            //
			'work'		=> 'required',
			'images'	=> 'json',
        ];
    }
    
    public function messages(){
    	return [
    		'work.required'		=> '请填写工作内容',
			'images.json'		=> '图片参数格式有误',
		];
	}
}
